﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EasyTrader.Option
{
    public class OptSignal
    {
        private string m_Code;
        public string Code
        {
            get { return m_Code; }
            set { m_Code = value; }
        }
        private double m_MainPrice = 0.0;
        public double MainPrice
        {
            get { return m_MainPrice; }
            set { m_MainPrice = value; }
        }
        private double m_MonthHigh = 0.0;
        public double MonthHigh
        {
            get { return m_MonthHigh; }
            set { m_MonthHigh = value; }
        }
        private int m_SigType = GlobalVar.SignalNone;
        public int SigType
        {
            get { return m_SigType; }
            set { m_SigType = value; }
        }

        private double m_OpenVal = 0.0;
        public double OpenVal
        {
            get { return m_OpenVal; }
            set { m_OpenVal = value; }
        }

        public EasyTrader.Option.OptSignal Clone()
        {
            EasyTrader.Option.OptSignal newSignal = new EasyTrader.Option.OptSignal();
            newSignal.Code = m_Code;
            newSignal.MainPrice = m_MainPrice;
            newSignal.MonthHigh = m_MonthHigh;
            newSignal.SigType = m_SigType;
            newSignal.OpenVal = m_OpenVal;

            return newSignal;
        }
    }
}
